package com.newworld.basketballfire.service.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.sql.Date;

/**
 * Created by George on 2019/3/3.
 * Dues
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Dues {
    private String id;
    private int type;
    private String userId;
    private String userName;
    private String activityId;
    private String activityName;
    private BigDecimal dues;
    private Date date;
    private String info;
    private long lastUpdateTime;
    private int version;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Date getDate() {
        return date;
    }
}
